<template>
  <div class="app">
    <h1>我是App组件</h1>
    <Person :name="name" :money="money" :age="age"/>
  </div>
</template>

<script>
  import Person from './components/Person'

  export default {
    name:'App',
    data() {
      return {
        name:'强哥',
        money:100,
        age:{
          foreignAge:30,
          realAge:60
        }
      }
    },
    components:{Person}
  }
</script>

<style>
  .app {
    background-color: gray;
    padding: 20px;
  }
</style>